package com.ruoyi.system.domain.qo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 订单管理对象 orders
 * 
 * @author chen
 * @date 2022-11-03
 */
public class OrdersQo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String userId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String uuid;

    /** 订单支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /** 订单收货地址 */
    @Excel(name = "订单收货地址")
    private String userAddress;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String status;

    /** 订单优惠券 */
    @Excel(name = "订单优惠券")
    private String userCoupons;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getUserCoupons() {
        return userCoupons;
    }

    public void setUserCoupons(String userCoupons) {
        this.userCoupons = userCoupons;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("uuid", getUuid())
            .append("createTime", getCreateTime())
            .append("payTime", getPayTime())
            .append("userAddress", getUserAddress())
            .append("status", getStatus())
            .append("userCoupons", getUserCoupons())
            .toString();
    }
}
